/* 
* @Author: Turbidsoul
* @Date:   2014-08-28 16:24:18
* @Last Modified 2015-06-14
* @Last Modified time: 2015-06-14 21:40:00
*/
'use strict';

var crawlerapp = angular.module('crawlerapp', ['ngRoute', 'crawlerapp.controllers', 'crawlerapp.filters', 'crawlerapp.services']);



crawlerapp.config(['$routeProvider',function($routeProvider) {
    $routeProvider.when('/', {
        templateUrl: 'app/website-list.html',
        controller: 'WebSitesCtrl'
    }).when('/website/:type', {
        templateUrl: 'app/website-detail.html',
        controller: 'WebSiteCtrl'
    }).when('/webiste/:type/:page', {
        templateUrl: 'app/website-detail.html',
        controller: 'WebSiteCtrl'
    }).otherwise({ redirectTo: '/' });
}]);
